<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div>速递公司人男</div>
    <script>
        var d = document.querySelector('div');
        console.log(d);
        d.onclick = function (event) {
            console.log(event)
            event.target.style.color = 'red'
        }
    </script>
</body>
</html>